﻿using System;
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraEditors;

namespace unitlControl
{
  public static class MessageboxUtils
    {
      public static DialogResult Success(string message)
      {
          return XtraMessageBox.Show(message, "THÀNH CÔNG",
                                  MessageBoxButtons.OK, MessageBoxIcon.Information);
      }


      public static DialogResult YesNo(string message)
      {
          return XtraMessageBox.Show(message, "CẢNH BÁO",
                                     MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
      }
      public static DialogResult Error(string message)
      {
          return XtraMessageBox.Show("Lỗi: " + message, "LỖI",
                                     MessageBoxButtons.OK, MessageBoxIcon.Error);
      }
    }
}
